//
// Created by liushuai on 2021/2/14.
//

#include "isSubsequence.h"
bool isSubsequence(string s, string t) {
    int length_t = t.size();
    int length_s = s.size();
    int i=0,j=0;
    while(i<length_s&&j<length_t){
        if(s[i]==t[j]){
            i++;
        }
        j++;
    }
    return i == length_s;
}
